A method for measuring the muon capture ratio in a H2 + Z gas mixture