You mean compression artifacts?
Can't do that in InDesign.
No automatic way to do it in Photoshop.
The best policy is to avoid introducing them in the first place. That said, if you're truly stuck with an image full of artifacts with no un-compressed original on which to fall back, manual spot work with Photoshop's Healing Brush is one way to go.