Add method that prints object and falls back to printing string.