Are you within shouting distance and do you have poop bags?
If so - just call out "oh - do you need a poop
bag? I've got one you can use!"
If they are genuinely out of bags - saves a lot of embarrassment, and if they aren't, it lets them know you know.
Might be a touch passive aggressive, but the other options are agressive agressive. And could be missed.