Pretty printing for methods