Your template can look like this:
template MakePair<$First, $Second, out @Pair>
{
set @Pair = @($First, $Second);
}
And the plan that uses the template can look like this:
set @Fruits = @();
call MakePair
{
First: Apple,
Second: Orange,
Pair => @Fruits
}