In XSLT 1.0 you will need to use a recursive template, like this:
and invoke it like this:
In XSLT 2.0, you can use the tokenize() function and simply select the last item in the sequence:
tokenize('M:Namespace.Class.Method(Something a, Something b)','\.')[last()]