A moderator deleted my answer:
You cannot yield two blocks in a method.
But you can take two procs.
def by_two(n, a, pr1, pr2)
pr1.call(n)
pr2.call(a)
end
by_two(10, 300, proc1, proc2)
to this question and converted it into a comment. How could the question have been answered without being deleted?