The bonuses stack.
So effectively, there's a +2 to hit, and a +2 to damage.
However, for purposes of breaking Damage Reduction, only the Arrow (or other projectile, such as crossbow bolt, etc) applies as that is the part that is actually hitting the target.