I see the return values of certain functions and computations, and while debugging my failing test, I can see a path to the solution I need.
Once the test succeeds, it's time to clean up the ugly code and refactor it into clean subsections, be it functions or classes.
So yeah, TDD is a great tool. One of many in my toolbox.