In the Webel recipe for modelling Mathematica (Wolfram Language) code in Systems Modeling Language v1 (SysML®) it is not intended that every single little part of the Wolfram Language code be modelled in SysML, even if there are some examples of fine-grained modelling of code on this site (mostly for educational purposes):
A function can be captured in SysML as an OpaqueBehavior with a 'body' or a ConstraintBlock with a Constraint indeed capturing the code (and even in Wolfram Language), which can be invoked in Magic Model Analyst® (Cameo Simulation Toolkit®) with Mathematica as the external maths engine, and serves as an excellent record of the function signature. Both Behaviors (OpaqueBehaviors) and Activities can be shown on a Block Definition Diagrams (BDD) in SysMLv1, including their parameters and constraint parameters and relationships to other elements.
Or the actual function call signature can be used (works with parameters with simpler types), and can be invoked in Magic Model Analyst® (Cameo Simulation Toolkit®) with Mathematica as the external maths engine.
For more complex functions and code logic, an Activity may be used, whereby it is not always necessary to model the internals with a SysML Activity Diagram: