Pass block with three params to #iterate_triples