<?php echo S2MEMBER_CURRENT_USER_LAST_NAME; ?>
This may output something like: Smith
(or whatever their last name is)

---- s2member Shortcode Equivalent ----

[s2Get constant="S2MEMBER_CURRENT_USER_LAST_NAME" /]