Get a FoO's version tag during its execution

For auditing/tracking/reproducibility purposes, I need to capture the version tag of a function (e.g. 0.0.5) during its execution (I will store it as a property in an object). Is there a way to do so?