That's what breakpoints are for, set the breakpoint just before where you "step too far" and try again... I personally find the "printf" technique too limiting, because it's not always obvious which variable is the one that had an unexpected value, especially if your programming to a commercial OS's API. Also, inserting an IO function will sometimes cause a subtle change in state or code compilation that causes "Heisenbugs."
But then again, I got spoiled by the debuggers in older environments like THINK Pascal, with "Observe" and "Instant" windows. It's only recently that IDEs like Xcode and Visual Studio finally attained functionality like that... (FYI, automatic variable watching and the ability to run "immediate" code while stepping.)
My big gripe with using debuggers with modern code, however, is the notion of using accessor functions. It makes what looks like only one line of code involve multiple jumps to other places, making "Step Into" a much less useful command...
Hence you have to decide to "Step Into" and potentially waste a lot of time, or "Step Over" and miss your bug. This annoys me.
I will admit that sometimes I play with things in the REPL for a while instead of writing a script. This is somewhat like the debugger, but at a higher level (functions instead of lines), and more interactive. You can fix your faulty function, then hit M-p and try invoking it again until it works.