
A squirt of water every time won't do the job in most cases, actually; it'll only teach the dog that eating poo
when the owner is close by is unsafe. The most likely outcomes of that approach are a dog that eats poo sneakily, or wolfs it down faster, before the owner can reach them.
Using a muzzle absolutely can be a very valuable tool for a situation like this, because while some dogs will push the muzzle in, most won't, so it prevents the dog practicing the behaviour while training modification (e.g. teaching a solid 'leave' cue) takes place.