Cut the bad part off, and try bondo and primer for exterior. Then paint it. And cut the rake edge down also.
I would cut it back flush with the facia, it is exposed to the weather and may do it again.
Another option when you are done is to install metal trim.