a2ps is a program that takes source code, does some (actually quite
cool) highlighting, and exports the result as a postscript file. It
seems that in your case it is being sent to what is designated as the
default CUPS printer, which on Ubuntu you can configure by going to
the GNOME menu and going to System > Preferences > Default Printer.
Hope this helps.