What is the point of this?
If you want to stub what
foo is actually doing, you can use stubs. If you want to confirm that the correct parameters are being sent to
bar, then shouldn't you test the result of whatever method this line is in?