See how RubyMine handles more complex cases when using the Extract Method refactoring, e.g. multiple return values.