Valid question!
Currently I'm looking at the solution with a conditional pragma. I believe, if in the called method you define some 'Variant' variable, then it should be possible to show / hide inputs / outputs.
I wonder what the experts here are thinking about usability of a conditional pragma with definition directly in the code?