Align orientation in Pose Mode
Since I dont realy know how to make Mzidare answer in comment the real answer to my question, here is his reply:

«You can use Rigify, it has IK/FK snap button. If you want to use your own rig though, you would probably need to use a script for that. – Mzidare Sep 2 at 10:22»

Thanks!