Print statements aren't meaningful tests, though. Hence the eight hojillion xUnit ports for pretty much every major language.
The second option is easier. You obviously remove them once your understanding (and tweaking) of the code leads to a passing test.