That's easy. It prints to the Serial monitor which is part of the Arduino IDE or to a terminal emulator running on the PC. The Arduino hardware (on most boards) creates a virtual serial port on the PC which is used by the Serial monitor or the emulator