In a non-military context, present arms is a phrase used humorously or formally to greet someone by standing straight and holding one's hand to forehead, like a salute.
My friend would jokingly present arms every time I entered his house.
"Present arms" is an expression used in military ceremonies. It means that soldiers should raise their rifles or other weapons up towards the sky in a special way to show respect for a certain person or event. It is typically done when someone important arrives or when the national flag is being raised.