You can get a bee to follow you by luring them in with the scent of flowers. Another method is by using the command /setblock ~ ~ ~ Minecraft to spawn a bee.