Add print option to play command (resolves #864)

When print option in play is used, it prints the executed code.