In Visual Studio, it was possible during debugging sessions to jump to the line selected by the cursor and execute that line. After jumping to that line, you can continue debug
You can jump backwards, to the top of the function, using Eclipse's "drop to frame" feature. Right-click the function at top of the stack.
You can't skip foo2(), but you could possibly edit variables to undo whatever effects it has had.
foo2()