How do I bake a bone animation that has a constraint?
In Pose Mode go to menu Pose > Animation > Bake Action

Check: Visual Keying
Check: Clear Constraints
Bake Data: Pose
OK

The constraints will be removed from the bone but instead the bone will be keyframed to act as if the constraint is affecting its motion.