Equivalent of PHP's print_r() function