A method's return type is always inferred by the compiler. However, you might want to specify it for two reasons:
For example:
def some_method : String "hello" end
The return type follows the type grammar.