Your answer is correct, but incomplete.
To pass a block to a method you define the block after the method call with either the curly bracket enclosure {} or the do/end syntax.