No there is no function available in .net as print_r(). But you can use your custom function and print array or IEnumerable
items in response. For E.g:
if (val is IEnumerable)
{
var e = val as IEnumerable;
foreach (var i in e)
{
Response.Write(i.ToString() + "
");
}
}