The rise and fall of star formation in z ~ 0.2 merging galaxy clusters