This doesn't have a simple answer.
From a pure chemistry standpoint you can observe that one CH4 molecule will completely react with two O2 molecules. CH4 has a molecular weight of 16, O2 has a molecular weight of 32. Thus you need 4x as much O2 by weight.
However, there are two other factors involved:
You can actually end up with more thrust with a bit of unburned fuel in the exhaust--what counts is velocity, not energy, and the lower molecular weight can help. I think it's only relevant for hydrolox but I'm not sure.
Very hot oxygen is an extremely powerful oxidizer. You do not want it touching your engine anywhere or you're liable to end up with I have seen beautifully described as engine-rich exhaust. This is a matter of the physics of the engine as opposed to one of chemistry. You must add enough extra fuel to ensure the safety of the engine even if this lowers the performance of the rocket.
Note that if you care about your engine this means you always must ensure that the oxygen shuts down before the fuel does. (If you're simply going to discard the stage at that point it doesn't matter, but if you plan to relight, or plan to recover the engine it does.)