Generalize the invoke interpreter to call 'print' and 'println' methods.