One way would be to first specify all but two numbers such that they have the required mean. Then, specify the remaining two numbers as: mean +x and mean - x. Finally, choose x to make the standard deviation equal to the desired value. The mean will be unchanged, since the two values are symmetric around the desired mean.